package dao;

import pojo.Book;

import java.util.List;

/**
 * @author Wxt
 * @create 2022-02-09 20:20
 */
public interface BookDao {
    int addBook(Book book);
    int deleteBookById(int id);
    int updateBook(Book book);
    Book queryForOneById(int id);
    List<Book> queryAllBooks();
    int queryForPageTotalCount();
    List<Book> queryForItems(int begin,int pageSize);
    int queryForPageTotalCount(int min,int max);
    List<Book> queryForPageItems(int begin,int pageSize,int min,int max);
}
